
function requetData() {
    $.ajax({
        url:"/user/getuser" ,
        dataType:"json",
        type:"get",
        async:false,
        success:function (data) {
            console.log(data)
            showData(data)
            password = data.userPassword
        }
    })
}
function showData(data){
    $('input[name="username"]').val(data.userName);
    $('input[name="phone"]').val(data.userPhone);
    $('input[name="identity"]').val(data.userIdentity);
    $('input[name="point"]').val(data.userPoint);
}
requetData()

if( $('input[name="identity"]').val() == null){
    $("#identity__err").val("身份证号码不能为空！")
}
else {
    $("#identity__err").val("")
}
